package com.situ.cloud.feign;

import com.situ.cloud.common.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="user")
public interface UserFeign {

    @GetMapping("/user/user/selectByUsername")
    UserDTO selectUser(@RequestParam("username") String username);

}
